Text File | 1993-02-03 | 692 b | 26 lines | [TEXT/MSET]
\ Gestalt and Sysenvirons
\ Initial version - mrh Aug 90.
\ Sept 91 SysEnvirons stuff deleted.
:code (GEST) \ ( selector -- result rc )
pop d0
call Gestalt
push a0
ext.l d0
push d0
;code
: GESTALT
(gest) abort" Gestalt call failed" ;
\ The following code is really only for testing, and as an example. Note that Apple urges caution in checking the machine type, since it's usually better to ask about specific facilities your program needs, rather than infer it from the machine type.